class CA
{
    double price()
    {
        if(_monthIndex < 3 || _monthIndex > 10)
        {
            return _num * _basePrice * _winterRate + _winterServiceCharge;
        }
        else
        {
            return _num * _basePrice;        
        }
    }
    int _monthIndex;
    int _num;
    int _basePrice;
    double _winterRate;
    double _winterServiceCharge;
};
